package com.zhq.blog.core.domain.user;

import java.util.Date;

import javax.persistence.Entity;

import org.springframework.format.annotation.DateTimeFormat;

import com.zhq.blog.core.domain.BasePersistentDomain;

@Entity
public class Sale extends BasePersistentDomain<SaleRepository> {
	
	private String name;    //活动名称
	private String prizePic; //活动图片
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date prizeDate;   //活动时间
	private String userName;//活动对象
	private long status;//状态  1 进行中  0已结束
	private String prizeUrl;//活动页面URL
	
	public Sale(){}
	
	public Sale(String name, String prizePic, Date prizeDate, String userName,
			long status, String prizeUrl) {
		super();
		this.name = name;
		this.prizePic = prizePic;
		this.prizeDate = prizeDate;
		this.userName = userName;
		this.status = status;
		this.prizeUrl = prizeUrl;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPrizePic() {
		return prizePic;
	}

	public void setPrizePic(String prizePic) {
		this.prizePic = prizePic;
	}

	public Date getPrizeDate() {
		return prizeDate;
	}

	public void setPrizeDate(Date prizeDate) {
		this.prizeDate = prizeDate;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public long getStatus() {
		return status;
	}

	public void setStatus(long status) {
		this.status = status;
	}

	public String getPrizeUrl() {
		return prizeUrl;
	}

	public void setPrizeUrl(String prizeUrl) {
		this.prizeUrl = prizeUrl;
	}
	
	
	
	
}
